<template>
  <div>
<!-- 编程式写法 -->
     <div>
<!-- 编程式写法 -->
<h1 class="h1">点击li必须使用编程式导航</h1>
<router-link @click="sing1" class="name" tag="li" to="/sing1/1">青藏高原</router-link>
<router-link @click="sing2" class="name" tag="li" to="/sing2/2">三天三夜</router-link>
  </div>
  </div>
</template>

<script>
export default {
  data () {
    return {

    }
  },

  created () {

  },

  methods: {
    // sing1 () {
    //   console.log(this.$router)
    //   this.router.push('/sing1')
    // }
  }
}
</script>

<style scoped lang='less'>
.h1{
  font-size: 18px;
  // padding: 1px 0;
  margin-top: -20px;
}
.name{
  font-size: 8px;
}
</style>
